package com.rpc.example.annotation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 *
 *
 * @author Elvis
 * @version 1.0, 2022/11/17
 */
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = {ElementType.TYPE, ElementType.FIELD})
@Autowired
public @interface RpcRemoteReference {
    @AliasFor("value")
    String serviceName() default "";

    @AliasFor("serviceName")
    String value() default "";
}
